package com.edu.design.chain;

public class ChainHandelFactory {
	
	public AbstractHander createHandler(){
		SalerHandler saler = new SalerHandler();
		ManagerHandler manager = new ManagerHandler();
		PresidentHandler president = new PresidentHandler();
		DirectorHandler director = new DirectorHandler();
		CeoHandler ceo = new CeoHandler();
		
		saler.setHandler(manager);
		manager.setHandler(president);
		president.setHandler(director);
		director.setHandler(ceo);
		
		return saler;
	}

}
